package com.itheima.InnerClassDemo1;

public class Outer {
    public static String name1="你好";
    //成员内部类，无static修饰，属于外部类对象持有的
    public class Inner{
        private String name;
        public Inner(){}
        public Inner(String name) {
            this.name = name;
        }
        public void method(){
            System.out.println("InnerClassDemo1.Outer.Inner.method()");
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
